import request from '@/utils/request'

// 查询物资入库记录列表
export function listInrecord(query) {
  return request({
    url: '/goods/inrecord/list',
    method: 'get',
    params: query
  })
}

// 查询物资入库记录详细
export function getInrecord(id) {
  return request({
    url: '/goods/inrecord/' + id,
    method: 'get'
  })
}

// 新增物资入库记录
export function addInrecord(data) {
  return request({
    url: '/goods/inrecord',
    method: 'post',
    data: data
  })
}

// 修改物资入库记录
export function updateInrecord(data) {
  return request({
    url: '/goods/inrecord',
    method: 'put',
    data: data
  })
}

// 删除物资入库记录
export function delInrecord(id) {
  return request({
    url: '/goods/inrecord/' + id,
    method: 'delete'
  })
}
